addHook("MapThingSpawn", function(mo, mt)
	if mapheaderinfo[gamemap].sceneryscale == nil return end
	if mo == nil return end
	
	local info = mobjinfo[mo.type]
	
	if (mo.flags & MF_SCENERY)
		local s = 25 * mt.extrainfo
		if s == 0
			s = 1
		end
		mo.scale = ($ * s) / 100
	end
end)